package com.company;

 public class USeAbstract {
     public static void main(String[] args){
       Aminal1 a=new Dog1();
       System.out.println(a.name);
       System.out.println(a.a);
     }
}
abstract class Aminal1{
     int a =10;
      final public String name ="张三";
     public   Aminal1(){
         System.out.println("构造方法");
     }
}
class Dog1 extends Aminal1{

}